package com.xuerhua.yxt.view;

import java.io.Serializable;

import org.apache.commons.lang.StringUtils;

public class ParentPersonImportView implements Serializable {

	private static final long serialVersionUID = 5665669132504240676L;
	//姓名
	private String name;
	//性别:1:男 2:女 0:未知
	private String sex;
	//组织
	private String organize = "家长组";
	//学工号
	private String no;
	//手机号码
	private String phone;
	//出生日期:输入格式为yyyy-MM-dd
	private String birthday;
	//民族:1:汉族 2:蒙古族 3:回族 4:藏族 5:维吾尔族 6:苗族 7:彝族 8:壮族 9:布依族 10:朝鲜族 11:满族 12:侗族 13:瑶族 14:白族 15:土家族 16:哈尼族 17:哈萨克族 18:傣族 19:黎族 20:傈僳族 21:佤族 22:畲族 23:高山族 24:拉祜族 25:水族 26:东乡族 27:纳西族 28:景颇族 29:柯尔克孜族 30:土族 31:达斡尔族 32:仫佬族 33:羌族 34:布朗族 35:撒拉族 36:毛难族 37:仡佬族 38:锡伯族 39:阿昌族 40:普米族 41:塔吉克族 42:怒族 43:乌孜别克族 44:俄罗斯族 45:鄂温克族 46:崩龙族 47:保安族 48:裕固族 49:京族 50:塔塔尔族 51:独龙族 52:鄂伦春族 53:赫哲族 54:门巴族 55:珞巴族 56:基诺族
	private String nation;
	//入学年
	private String enterYear;
	//证件类型 证件类型:111:身份证 414:护照 113:户口簿 335:驾驶证 131:工作证 133:学生证 990:其他
	private String idType;
	//身份编号
	private String idNo;
	//人员类型:1:教工 2:学员 3:流动人员 4:其他人员
	private String personType = "4";
	
	private String studentId;
	private String studentName;
	private String relation;
	private String faceImgUrl;
	private String faceGroupCode;
	private String faceIndexCode;
	private String facePersonId;
	private String grade;
	private String clazz;
	public String getName() {
		if(StringUtils.isBlank(relation)) {
			return studentName + "的亲朋";
		}
		if("其它".equals(relation.trim())) return studentName + "的亲朋";
		else return studentName + "的" + relation;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		if(StringUtils.isBlank(relation)) {
			return "UNKNOWN";
		}
		if("其它".equals(relation)) return "UNKNOWN";
		else if("爸爸".equals(relation) || "叔叔".equals(relation) || "爷爷".equals(relation)) {
			return "1";
		}else return "2";
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getOrganize() {
		return organize;
	}
	public void setOrganize(String organize) {
		this.organize = organize;
	}
	public String getNo() {
		return "JZ" + no;
	}
	public void setNo(String no) {
		this.no = no;
	}
	public String getPhone() {
		if(StringUtils.isBlank(phone)) return "";
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getBirthday() {
		if(StringUtils.isBlank(birthday)) return "";
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public String getNation() {
		if(StringUtils.isBlank(nation)) return "";
		return nation;
	}
	public void setNation(String nation) {
		this.nation = nation;
	}
	public String getEnterYear() {
		if(StringUtils.isBlank(enterYear)) return "";
		return enterYear;
	}
	public void setEnterYear(String enterYear) {
		this.enterYear = enterYear;
	}
	public String getIdType() {
		if(StringUtils.isBlank(idType)) return "";
		return idType;
	}
	public void setIdType(String idType) {
		this.idType = idType;
	}
	public String getIdNo() {
		if(StringUtils.isBlank(idNo)) return "";
		return idNo;
	}
	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}
	public String getPersonType() {
		return personType;
	}
	public void setPersonType(String personType) {
		this.personType = personType;
	}
	public String getStudentId() {
		return studentId;
	}
	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}
	public String getStudentName() {
		return studentName;
	}
	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}
	public String getRelation() {
		return relation;
	}
	public void setRelation(String relation) {
		this.relation = relation;
	}
	public String getFaceImgUrl() {
		return faceImgUrl;
	}
	public void setFaceImgUrl(String faceImgUrl) {
		this.faceImgUrl = faceImgUrl;
	}
	public String getFaceGroupCode() {
		return faceGroupCode;
	}
	public void setFaceGroupCode(String faceGroupCode) {
		this.faceGroupCode = faceGroupCode;
	}
	public String getFaceIndexCode() {
		return faceIndexCode;
	}
	public void setFaceIndexCode(String faceIndexCode) {
		this.faceIndexCode = faceIndexCode;
	}
	public String getFacePersonId() {
		return facePersonId;
	}
	public void setFacePersonId(String facePersonId) {
		this.facePersonId = facePersonId;
	}
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
	public String getClazz() {
		return clazz;
	}
	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

}
